package com.example.myapplication2.aroutermodule

import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.alibaba.android.arouter.launcher.ARouter
import com.example.base_libs.moduleA
import com.example.base_libs.moduleB
import com.example.base_libs.moduleC
import com.example.myapplication2.R
import com.example.myapplication2.cActivity
import com.example.myapplication2.singleClass
import com.example.mylibrary.AmoduleAct

class MainAct : AppCompatActivity() {

    /***
     *
     *   arouter 基本操作。
     *   https://www.cnblogs.com/guanxinjing/p/17107974.html
     *
     * */

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.main_view)
    }


    fun bt1(v: View) {
        ARouter.getInstance().build(moduleA).navigation(this, LoginNavigationCallbackImpl())
    }

    fun bt2(v: View) {
        ARouter.getInstance().build(moduleB).navigation(this, LoginNavigationCallbackImpl())
    }

    fun bt3(v: View) {
        ARouter.getInstance().build(moduleC).navigation(this, LoginNavigationCallbackImpl())
    }

}